package com.example.mannortycoon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mannortycoon.entity.UserCropEntity;
import com.example.mannortycoon.uitl.R;
import com.example.mannortycoon.vo.UserCropVo;

import java.util.List;


public interface UserCropService extends IService<UserCropEntity> {

    List<UserCropVo> getUserCropList(Long userId);

    void saveUserCropList(Long userId,List<UserCropEntity> userCropList);

//    R buyCrop(Long userId, UserCropEntity userCropEntity);

    R sellCrop(Long userId,Long cropId,Integer number);

    R give(Long userId, Long userId2, Long cropId, Integer number);

    UserCropEntity getUserCropInfo(Long userId, Long cropId);

    void updateNumber(Long userId, Long cropId, Integer number);
}

